<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div>123</div>
	<script>
		var div = document.getElementsByTagName('div')[0];
		div.addEventListener('click',function () {
			console.log('a');
		},false);
		// function test () {
		// 	console.log('a');
		// }
		div.removeEventListener('click',function () {
			console.log('a');
		},false);

	</script>
</body>
</html>